@import"./modules/reset.scss"; // 引用通用样式 
@import "./modules/header.scss"; //引入header样式
@import "./modules/footer.scss";//引入footer样式
// 详细页面CSS
main{
    position: relative; //给定位为了放大镜
}
.mainDetail{
    width: 100%;
    height: 650px;
    border-top: 1px solid #ccc;
}
.mainDetail .detailLeft{
    width: 550px;
    height: 600px;
    float: left;
    margin-top: 30px;
    margin-left: 50px;
}
.mainDetail .detailLeft .bigPhoto{
    width: 550px;
    height: 500px;
    border: 1px solid #ccc;
    display: block;
}
//放大镜
.mainDetail .detailLeft .glass{
   position: relative; 
   width: 550px;
   height: 500px;
}
.mainDetail .detailLeft .glass span{
    position: absolute;
    display: block;
    width: 400px;
    height: 350px;
    left: 0;
    top: 0;
    background-color: rgba(255,0,255,0.3);
    cursor: move;
    display: none;
}
main .bigGlass{
    position: relative;
    width: 550px;
    height: 500px;
    overflow: hidden;
    background: pink;
    margin-top: -620px;
    margin-left: 606px;
    display: none;
}
main .bigGlass img{
    position: absolute;
}




//下面是小图片
.mainDetail .smallPhoto  p{
    float: left; 
    width: 100px;
    height: 100px;
}
.mainDetail .smallPhoto p{
    display: block;
    width: 90px;
    height: 90px;
    border: 1px solid #ccc;
    float: left;
    margin-left: 15px;
    img{
        width: 100%;
    }
}

.mainDetail .smallPhoto p:nth-child(1){
    border: solid red 1px !important;
}
.mainDetail .smallPhoto p:hover{
    border: solid red 1px;
}
.mainDetail .detailRight{
    width: 650px;
    height: 600px;
   
    float: left;
    position: absolute;
    left:660px;
    top:30px ;
    // margin-top: 30px;
    // margin-left: 90px;
}
.mainDetail .detailRight span{
    display: block;
    height: 50px;
    width: 100%;
    margin-top: 13px;
    line-height: 50px;
}
.mainDetail .detailRight span:nth-child(1){
    color: black;
    font-size: 25px;
    font-weight: bolder;
}
.mainDetail .detailRight span:nth-child(2){
    color:#ccc;
    font-size: 14px;
    font-weight: bolder;
}
.mainDetail .detailRight span:nth-child(3){
    font-weight: bolder;
    font-size: 20px;
    
    em{
        display: block;
        float: left;
    }
}
.mainDetail .detailRight span:nth-child(3) em:nth-child(1){
    float: left;
    color: 	#FF6A6A;
 
}
.mainDetail .detailRight span:nth-child(3) em:nth-child(2){
    width: 45px;
    height: 27px;
    background:#FF6A6A ;
    font-size: 12px;
    color: white;
    margin-top: 10px;
    text-align: center;
    line-height: 30px;
    margin-left: 15px;
}
.mainDetail .detailRight span:nth-child(5) em{
    display: block;
    width: 160px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border:#FF6A6A 1px solid;
}
.mainDetail .detailRight span:nth-child(6){
    border: #ccc 1px solid;
    width: 150px;
    height: 50px;
    font-size: 25px;
}
.mainDetail .detailRight span:nth-child(6) em{
    display: block;
    float: left;
    width: 49px;
    height: 50px;
    text-align: center;
    line-height: 49px;
}
.mainDetail .detailRight span:nth-child(6) em:nth-child(2){
    border-left:1px solid #ccc ;
    border-right: 1px solid #ccc ;
}
.mainDetail .detailRight span:nth-child(7) em{
    display: block;
    width: 160px;
    height:50px;
    border:#FF6A6A 1px solid;
    text-align: center;
    line-height: 50px;
}
.mainDetail .detailRight span:nth-child(8){
    color: #ccc;
    font-size: 14px;
}
.mainDetail .detailRight .buy{
    display: block;
    width: 160px;
    height:50px;
    border:#FF6A6A 1px solid;
    text-align: center;
    line-height: 50px;
    a{
        color: black;
        font-size: 18px;
    }
}
.cart{
    position: fixed;
    right: 0;
    top: 50%;
    background: pink;
    color: red;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 25px;
}
